home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / when33.zip / WHEN.DOC < prev   
Text File  |  1990-09-01  |  6KB  |  123 lines

  1. WHEN - A Terminate & Stay Resident delayed activation utility 
  2. *****************************************************************         
  3.                       L E G A L   B I T S
  4.  
  5.      WHEN, and all the ancillary programs in this package are my own  work,
  6. and are copyright by that fact. I hereby place that set in the public
  7. domain.  I place NO restriction of any kind on their use, adaptation,
  8. resale, possession or transfer.
  9.  
  10.      If you have a copy of this material, you have it with my blessings and
  11. good wishes.  May it do well by you.
  12.  
  13.      I accept NO contingent responsibility of any kind for the use or any
  14. consequence of use of this software. If you use it, it is presumed that you
  15. know why and how to use it, and that you are in full control of all
  16. consequences of that use.
  17.  
  18.                       David Hatch  M.A.C.S.
  19.  
  20.      Due to ethics violations that could be levied against the modifier of
  21. this program, THE UNKNOWN HACKER can not take any credit for bringing this
  22. program to full functionality by making it a re-usable TSR.  David Hatch's
  23. PUBLIC DOMAIN stipulation remains in full effect. Thanks. 
  24. ***************************************************************** 
  25.  
  26.      WHEN.COM serves as a delayed wakeup utility, which does not fully
  27. monopolize your computer while it is waiting.  It is a Terminate and Stay
  28. Resident, which monitors the time.  When a requested time has arrived, a
  29. requested command is stuffed into the keyboard buffer, and run.
  30.  
  31.      This implies that the computer will be known to be idle at the time of
  32. activation, sitting at the DOS prompt, or else running some application
  33. which expects the delayed command. If you have a slow computer such as a
  34. 4.77MHZ XT or XT CLONE then your day will not increment at a midnight
  35. crossing. The date remains the same but time marches on.
  36.  
  37. *****************************************************************
  38. IT WILL POTENTIALLY CAUSE ** DISASTER ** IF SOME APPLICATION WHICH DOES NOT
  39. EXPECT THE DELAYED COMMAND IS RUNNING AT THE SPECIFIED TIME.  WHEN.COM HAS
  40. NO WAY OF CHECKING FOR SENSIBLE USE OF THE DATA IT WAS GIVEN, BUT WILL
  41. BLINDLY PUT IT INTO THE KEYBOARD BUFFER AT THE SPECIFIED TIME.  IF YOUR
  42. COMMAND IS INTELLIGIBLE IN SOME WAY TO THE UNEXPECTED APPLICATION, **
  43. ANYTHING ** COULD HAPPEN. PREVENTION OF THIS SITUATION IS YOUR
  44. RESPONSIBILITY, WHEN.COM CANNOT, AND WILL NOT, HELP YOU TO AVOID IT.
  45.  
  46. YOUR ACCEPTANCE OF THIS PROGRAM DIRECTLY INCLUDES ACCEPTANCE OF 
  47. RESPONSIBILITY FOR CONTROLLING WHAT IT WILL DO.  TAKE CARE. 
  48. *****************************************************************
  49.  
  50.      There may be conflict with other TSR utilities, if interrupt vector
  51. 08H (timer tick) is taken away from WHEN, and not restored. No other
  52. incompatibilities will commonly exist.
  53.  
  54.      Some rare programs do not use ROM BIOS keyboard input. Those will not
  55. see input from WHEN, and it may or may not appear later, depending on
  56. whether the offending program clears the keyboard buffer on exit.) 
  57.  
  58. Command syntax is:      WHEN HH[:MM[:SS]] command [command tail] 
  59.  
  60.      This means that at least hours must be entered. If only hours are
  61. entered, the time will be accepted as seconds 00 of minute 00 of the
  62. specified hour. Leading zeros must be entered if needed. This is only true
  63. for the first execution of WHEN. After that the minutes and seconds will
  64. remain at the previous values.
  65.  
  66.      Minutes may be entered, separated from hours by a colon. If hours:
  67. minutes are entered, seconds will be accepted as 00. This is only true for
  68. the first execution of WHEN. After that the seconds will remain at the
  69. previous value.
  70.  
  71.      Hours, minutes, seconds may be entered, separated by colons.  Format
  72. is: HH:MM:SS.  All digits must be entered, including leading zeros. 
  73.  
  74.      When a colon is entered, the following digit pair is required. 
  75.  
  76.      The time specification must be followed by one or more spaces, as a
  77. command separator, which must be followed by an executable command.
  78.  
  79.      The executable command may be followed by another separator, and any
  80. desired parameters for the executable command as a command tail. All
  81. characters from the beginning of the executable command to the end of the
  82. command tail will be placed in the keyboard buffer, with a trailing <Enter>
  83. key, at the specified time.
  84.  
  85.      The follow table shows what characters are to be enter on the
  86. executable command to simulate the FUNCTION keys.
  87.   
  88. FOR : F1  F2  F3  F4  F5  F6  F7  F8  F9  F10
  89. USE :  #   $   %   &   '   (   )   *   +   , 
  90.  
  91.      This is tailored to the requirements of DOS at the command prompt, but
  92. could well be used as a delayed command to some application.
  93.  
  94.      Beware of the possibility of intermingled operator input with your
  95. delayed command. (Someone working late/early?? Take care.) 
  96.  
  97. *****************************************************************
  98. Interactive operation / Batch file operation with status return 
  99. *****************************************************************
  100.      If the time and command are entered manually, WHEN will give a prompt
  101. advising its interpretation of your command.
  102.  
  103.      If an obvious error occurs, the command will not be accepted, and an
  104. error message will appear.
  105.  
  106.      If an error occurs, a descriptive error level will be returned to DOS. 
  107. (Error level == 0 if no error.)
  108.  
  109.      To make batch file operation easier, the prompts may be suppressed. To
  110. do this, insert a '/' character before the time value. This suppresses both
  111. the startup message, and any error messages. (If an error occurs, the error
  112. level will be returned to DOS.)
  113.  
  114. SAMPLE COMMAND STRINGS -
  115.  
  116. WHEN / 19:55:00 MAIL   ;Run mail utility at 19:55 each night.              
  117.                        ;No prompt messages, return error levels. 
  118.  
  119. when 00:10:00 fboot    ;Reboot the computer at 10 mins past                
  120.                        ;midnight. Prompt operator, prompt & return errors. 
  121.  
  122. WHEN                   ;Returns the current setting for the program
  123.